package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.EncourageCategory;
import cn.btks.resultintegration.rule.repository.EncourageCategoryRepository;
import cn.btks.resultintegration.rule.service.EncourageCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/3/28 12:30
 */
@Service
public class EncourageCategoryServiceImpl implements EncourageCategoryService {

    @Autowired
    EncourageCategoryRepository encourageCategoryRepository;

    @Override
    public List<EncourageCategory> findAllByCategoryId(Long categoryId) {
        return encourageCategoryRepository.findAllByCategoryId(categoryId);
    }
}
